//1、下载
//2、引入
import VueRouter from "vue-router";
import Vue from "vue";
//3、注册
Vue.use(VueRouter)
//4、路由规则
let routes = [
    {
        path: "/",
        redirect: "/login"
    },
    {
        path: "/login",
        component: () => import("../views/login.vue")
    }
]
//5、生成路由对象
let router = new VueRouter({
    routes
})
//6、导出路由对象
export default router